<?php
/**
 * Form for database entry updates.
 * @author Ian Dunn <scholar42@gmail.com>
 * @version 1.0
 * @since 2013-11-20
 */
require_once "customer.php";
require_once "employees.php";
require_once "machines.php";
require_once "materials.php";
require_once "login_info.php";

loginInfo::update_login();

if ($_REQUEST) {
	$type = $_REQUEST['type'];
	$print_type = ucwords ($type);
	// Setup possible error.
}
?>

<html>
	<head>
<?php echo "\t\t<title>Opol - Update " . $print_type . "</title>\n"; ?>
	</head>
	<body>
		<link rel="stylesheet" type="text/css" href="opol.css">
		<?php require 'menu.php' ?>
	<a href="new_entry.php?type=<?php echo $type; ?>">New <?php echo $print_type; ?></a><br>
<?php $type::select("update_" . $type . ".php"); ?>
	</body>
</html>
